package com.feature.shop.user.converter;

import java.util.List;

import org.mapstruct.Mapper;
import com.feature.core.config.MapstructTypeConvert;

import com.feature.shop.user.api.request.ShopUserRoleListRequest;
import com.feature.shop.user.api.request.ShopUserRolePageRequest;
import com.feature.shop.user.api.vo.ShopUserRoleVo;
import com.feature.shop.user.model.query.ShopUserRoleQuery;
import com.feature.shop.user.model.entity.ShopUserRoleEntity;

/***
 * 用户角色表Converter
 */
@Mapper(uses = MapstructTypeConvert.class)
public interface ShopUserRoleConverter {

    ShopUserRoleVo entityToVO(ShopUserRoleEntity entity);

    List<ShopUserRoleVo> entityListToVO(List<ShopUserRoleEntity> list);

    ShopUserRoleQuery pageRequestToQuery(ShopUserRolePageRequest request);

    ShopUserRoleQuery listRequestToQuery(ShopUserRoleListRequest request);

}
